<template>
  <div>
    <div class="bottom" :style="{ 'background-color': sideBgColor }">
      <div class="mb-4">
        <el-button type="danger" @click="onClear">清除</el-button>
        <el-button type="primary" @click="onDiaglog">麻雷码登记</el-button>
        <el-button type="success">医生</el-button>
        <el-button type="info">处方药登记</el-button>
        <el-button type="warning">挂单记录</el-button>
        <el-button type="success">整单改价</el-button>
      </div>
      <div class="mb-4">
        <el-button type="danger">其他支付</el-button>
        <el-button type="primary">现金支付</el-button>
        <el-button type="success">扫码支付</el-button>
      </div>
    </div>

    <!---弹框处方药登记-->
    <prescription-medicine ref="refPrescriptionMedicine" title="麻雷码登记"></prescription-medicine>
  </div>
</template>

<script setup lang="ts">
import { computed, ref } from 'vue'
import useSettingsStore from '@/store/modules/settings'
import prescriptionMedicine from '@/views/cashier-desk/components/diaglog/prescription-medicine.vue'

const settingsStore = useSettingsStore()
const sideBgColor = computed(() => settingsStore.sideBgColor)
const dialogVisible = ref(true)

const refPrescriptionMedicine = ref()

//清除
const onClear = () => {}

//清除
const show = () => {}

//清除
const hide = () => {}

const handleClose = () => {}

const onDiaglog = () => {
  refPrescriptionMedicine.value.show()
}
</script>

<style lang="scss" scoped>
.bottom {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  min-width: 600px;
  overflow-y: auto;
  overflow-x: auto;
}
</style>
